package com.mengniu.commerce.collect.service.impl;


import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.mengniu.commerce.collect.model.item.YzItem;
import com.mengniu.commerce.collect.service.ItemService;
import com.mengniu.commerce.collect.third.request.IYouZanGoodsRequest;
import com.mengniu.commerce.collect.util.RestTemplateUtil;
import com.mengniu.commerce.sync.api.RemoteItemService;
import com.mengniu.commerce.sync.api.domain.BaseMnItemModel;
import com.mengniu.commerce.sync.api.domain.CreateItemModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;


/**
 * 参数配置 服务层实现
 *
 * @author yz_sm
 */
@Service
public class ItemServiceImpl implements ItemService {
    @Autowired
    private RemoteItemService remoteItemService;

    @Resource
    private RestTemplateUtil restTemplateUtil;

    @Resource
    private IYouZanGoodsRequest iYouZanGoodsRequest;

    @Override
    public void createItemByMessage(Long bosId, Long goodsId) {
        String token = restTemplateUtil.getToken();
        //查询商品详情
        YzItem yzGoodsDetail = iYouZanGoodsRequest.getYzGoodsDetail(bosId, goodsId);

    }

    @Override
    public void updateItemByMessage() {

    }
}
